<template>
  <div class="set">
    <div style="margin: 20px"></div>
    <el-form
      :label-position="labelPosition"
      label-width="80px"
      :model="account"
      style="width: 300px; margin-left: 40px"
    >
      <el-form-item label="账号">
        <el-input v-model="account.name" readonly></el-input>
      </el-form-item>
      <el-form-item label="密码">
        <el-input v-model="account.pw"></el-input>
      </el-form-item>
      <el-button type="success">修改密码</el-button>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      labelPosition: "top",
      account: {},
    };
  },
  mounted() {
    this.account = JSON.parse(sessionStorage.getItem("thisaccount"));
    console.log(this.account)
  },
};
</script>

<style>
.set {
  padding: 20px;
}
</style>


 